﻿using System.Collections.Generic;

namespace DanMuHelper.Video
{
    /// <summary>
    /// 视频播放负载
    /// </summary>
    public interface IVideoContext
    {
        // bool IsCombo(IVideoContext other);

        /// <summary>
        /// 权重用来进行排序
        /// </summary>
        int Weight { get; }

        /// <summary>
        /// 数值负载, 例如礼物数量
        /// </summary>
        int ScalarValue { get; }

        /// <summary>
        /// 判断是否可以合并
        /// </summary>
        /// <param name="comboCount">当前连击数量</param>
        /// <param name="totalScalarValue">当前负载数量</param>
        /// <returns>true/false</returns>
        bool IsCombinable(IReadOnlyList<IVideoContext> items, int totalScalarValue);
    }
}
